<?php


$hello = $application->createComponent( "javax.faces.HtmlOutputText" );
$hello->setValue("hello, phpfaces!");
$hello->setId( "hello" );
$hello->setParent( $viewRoot );

$hello2 = $application->createComponent( "javax.faces.Output" );
$hello2->setValue("hello, phpfaces! CHILDO");
$hello2->setParent( $hello );
$hello->getChildren()->add( $hello2 );

$viewRoot->getChildren()->add( $hello );
/*
$testForm = $application->createComponent( "javax.faces.HtmlForm" );
$testForm->setId( "test-form" );
$testForm->setParent( $viewRoot );


$viewRoot->getChildren()->add( $testForm );
*/

?>